Skip to content

Conversation

@redjard
Copy link
Contributor

@redjard redjard commented Nov 3, 2025

At its core this is a copy of resume.
it adds

[import_order.after]
handle_resume_swapfile = "crypt_init"

to ensure the partition with the swapfile is decrypted when the restore is attempted.

This also adds some checks to make sure resume_offset= makes sense.

Expected kernel args would be something like resume=/dev/mapper/root resume_offset=17580288.

@redjard
Copy link
Contributor Author

redjard commented Nov 3, 2025

How does the regular resume work anyway? Is it only for unencrypted swap partitions?
maybe that should receive

[import_order.after]
handle_resume = "crypt_init"

too?

@redjard redjard force-pushed the resume-swapfile branch 2 times, most recently from 8f3b095 to b06e212 Compare November 5, 2025 20:47
add a bunch of filesystems to before, since resume doesn't need (and shouldn't be done with) mounted filesystems.

Add lvm to after, since resume might point to a partition inside a volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant